<?php
/**
 * Created by PhpStorm.
 * User: 86183
 * Date: 2020/5/11
 * Time: 0:32
 */

namespace app\admin\model;


use think\Model;

class Comment extends Model
{
    protected $pk='commonid';

    public function worker(){
        return $this->belongsTo('Worker','workerid');
    }
    public function user(){
        return $this->belongsTo('User','uid');
    }
    public function store(){
        return $this->belongsTo('Store','storeid');
    }
}